package com.ruoyi.shop.api.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商家促销活动业务对象 erp_seller_store_promotion_activity
 *
 * @author erp
 * @date 2023-06-08
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerStorePromotionActivityBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long activityId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 店铺id
     */
    @NotNull(message = "店铺id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long storeId;

    /**
     * 活动名称
     */
    @NotBlank(message = "活动名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String promotionName;

    /**
     * 活动id
     */
//    @NotBlank(message = "活动id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String promotionId;

    /**
     * 是否大促
     */
    @NotBlank(message = "是否大促不能为空", groups = { AddGroup.class, EditGroup.class })
    private String hasPromo;

    /**
     * 结束时间
     */
    @NotBlank(message = "结束时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String endTime;

    /**
     * 开始时间
     */
    @NotBlank(message = "开始时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String startTime;

    /**
     * 状态
     */
//    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

//    @NotBlank(message = "erp状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String erpStatus;

    /**
     * 乐观锁
     */
//    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


    private String existStoreFansDiscount;
}
